﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_RptBangGiaHangHoa : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CboLoaiGia")]
        private ComboBox _CboLoaiGia;
        [AccessedThroughProperty("CmdAddRow")]
        private Button _CmdAddRow;
        [AccessedThroughProperty("CmdDelRow")]
        private Button _CmdDelRow;
        [AccessedThroughProperty("CmdExit")]
        private Button _CmdExit;
        [AccessedThroughProperty("CmdIn")]
        private Button _CmdIn;
        [AccessedThroughProperty("CmdMacDinh")]
        private Button _CmdMacDinh;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("OptTiengAnh")]
        private RadioButton _OptTiengAnh;
        [AccessedThroughProperty("OptTienViet")]
        private RadioButton _OptTienViet;
        [AccessedThroughProperty("TxtNgayChungTu")]
        private DateTimePicker _TxtNgayChungTu;
        [AccessedThroughProperty("TxtNoiDung")]
        private TextBox _TxtNoiDung;
        [AccessedThroughProperty("VSListDieuKhoan")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSListDieuKhoan;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsGiaBan objGB;

        public Frm_RptBangGiaHangHoa()
        {
            base.Load += new EventHandler(this.Frm_RptBangGiaHangHoa_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objGB = new clsGiaBan();
            this.InitializeComponent();
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdIn_Click(object sender, EventArgs e)
        {
            DataTable bangGia;
            this.Cursor = Cursors.WaitCursor;
            if (this.OptTienViet.Checked)
            {
                bangGia = this.objGB.GetBangGia(Conversions.ToString(this.CboLoaiGia.SelectedValue), "VIET");
            }
            else
            {
                bangGia = this.objGB.GetBangGia(Conversions.ToString(this.CboLoaiGia.SelectedValue), "Anh");
            }
            DataTable dieuKhoan = this.GetDieuKhoan();
            if (bangGia.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else
            {
                object instance = new Rpt_BangGia();
                try
                {
                    object[] arguments = new object[] { dieuKhoan };
                    bool[] copyBack = new bool[] { true };
                    NewLateBinding.LateCall(NewLateBinding.LateGet(instance, null, "Subreports", new object[] { 0 }, null, null, null), null, "SetDataSource", arguments, null, null, copyBack, true);
                    if (copyBack[0])
                    {
                        dieuKhoan = (DataTable) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[0]), typeof(DataTable));
                    }
                    object[] objArray2 = new object[] { bangGia };
                    copyBack = new bool[] { true };
                    NewLateBinding.LateCall(instance, null, "SetDataSource", objArray2, null, null, copyBack, true);
                    if (copyBack[0])
                    {
                        bangGia = (DataTable) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(objArray2[0]), typeof(DataTable));
                    }
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, "") }, null, null, null, true);
                    }
                    else
                    {
                        NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, "") }, null, null, null, true);
                    }
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 2, modGeneral.Tranlated("M\x00e3 số thuế", "") + ": " + modGeneral.H_TAXCODE }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 4, modGeneral.Tranlated("Email", "") + ": " + modGeneral.H_EMAIL }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 5, modGeneral.Tranlated("BẢNG B\x00c1O GI\x00c1", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 6, this.TxtNoiDung.Text.Trim() }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 7, modGeneral.Tranlated("STT", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 8, modGeneral.Tranlated("T\x00caN SẢN PHẨM", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 9, modGeneral.Tranlated("SỐ ĐĂNG K\x00dd", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 10, modGeneral.Tranlated("QUY C\x00c1CH", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 11, modGeneral.Tranlated("M\x00c3 H\x00c0NG", "") }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 12, this.CboLoaiGia.Text.ToUpper() }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 13, modGeneral.Tranlated("Th\x00e0nh phố Hồ Ch\x00ed Minh, ng\x00e0y: ", "") + this.TxtNgayChungTu.Text }, null, null, null, true);
                    NewLateBinding.LateCall(instance, null, "SetParameterValue", new object[] { 14, modGeneral.Tranlated("GI\x00c1M ĐỐC", "") }, null, null, null, true);
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = RuntimeHelpers.GetObjectValue(instance);
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    if (Form.ActiveForm != null)
                    {
                        Form.ActiveForm.Cursor = Cursors.Default;
                    }
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        private void CmdMacDinh_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DieuKhoanBaoGia.strLoaiChungTu = "GB";
            MyProject.Forms.Frm_DieuKhoanBaoGia.ShowDialog();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void FillDieuKhoanTemplate()
        {
            DataTable dieuKhoanTemplate = new ClsBaoGia().GetDieuKhoanTemplate("GB");
            this.VSListDieuKhoan.Select(0, 0);
            this.VSListDieuKhoan.Rows.Count = 1;
            int num2 = dieuKhoanTemplate.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                this.VSListDieuKhoan.AddItem("");
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(dieuKhoanTemplate.Rows[i]["KhoaDieuKhoan"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(dieuKhoanTemplate.Rows[i]["DieuKhoan"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(dieuKhoanTemplate.Rows[i]["NoiDung"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 4] = dieuKhoanTemplate.Rows[i]["HienThi"].ToString().Trim();
            }
        }

        private void Frm_RptBangGiaHangHoa_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.TxtNoiDung.Text = "C\x00f4ng ty THỦY DƯƠNG xin ch\x00e2n th\x00e0nh cảm ơn qu\x00fd kh\x00e1ch h\x00e0ng đ\x00e3 quan t\x00e2m đến những sản phẩm Dược mỹ phẩm Av\x00e8ne - Gal\x00e9nic của ch\x00fang t\x00f4i";
                this.TxtNoiDung.Text = this.TxtNoiDung.Text.Trim() + " trong suốt thời gian qua. Ch\x00fang t\x00f4i xin gửi đến Qu\x00fd kh\x00e1ch bảng gi\x00e1 c\x00e1c sản phẩm như sau: ";
                Hashtable hashtable = new Hashtable();
                hashtable.Add("0", "In thường");
                hashtable.Add("1", "In đậm");
                this.VSListDieuKhoan.Cols[4].DataMap = hashtable;
                BuildComboModule.BuildCombo(this.CboLoaiGia, modGeneral.ListDanhMuc.LoaiGiaBan, false, "", "");
                this.CboLoaiGia.SelectedValue = modGeneral.H_GIACHUAN;
                this.FillDieuKhoanTemplate();
                this.Cursor = Cursors.Default;
            }
        }

        public DataTable GetDieuKhoan()
        {
            DataTable dieuKhoanBaoGia = this.objGB.GetDieuKhoanBaoGia();
            int num2 = this.VSListDieuKhoan.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                DataRow row = dieuKhoanBaoGia.NewRow();
                row[0] = "* " + LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDieuKhoan[i, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                row[1] = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDieuKhoan[i, 2]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                row[2] = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDieuKhoan[i, 4]), 0, modGeneral.TypeOfValue.Nothing));
                dieuKhoanBaoGia.Rows.Add(row);
            }
            return dieuKhoanBaoGia;
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_RptBangGiaHangHoa));
            this.Label13 = new Label();
            this.TxtNgayChungTu = new DateTimePicker();
            this.TxtNoiDung = new TextBox();
            this.Label1 = new Label();
            this.VSListDieuKhoan = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.CmdMacDinh = new Button();
            this.CmdIn = new Button();
            this.CmdExit = new Button();
            this.CmdDelRow = new Button();
            this.CmdAddRow = new Button();
            this.Label2 = new Label();
            this.Label3 = new Label();
            this.CboLoaiGia = new ComboBox();
            this.OptTiengAnh = new RadioButton();
            this.OptTienViet = new RadioButton();
            this.VSListDieuKhoan.BeginInit();
            this.SuspendLayout();
            this.Label13.AutoSize = true;
            Point point = new Point(9, 15);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            Size size = new Size(0x4a, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x6d;
            this.Label13.Text = "Ng\x00e0y b\x00e1o c\x00e1o";
            this.TxtNgayChungTu.Format = DateTimePickerFormat.Short;
            point = new Point(0x63, 12);
            this.TxtNgayChungTu.Location = point;
            this.TxtNgayChungTu.Name = "TxtNgayChungTu";
            size = new Size(0x5b, 20);
            this.TxtNgayChungTu.Size = size;
            this.TxtNgayChungTu.TabIndex = 0x6c;
            point = new Point(0x63, 0x26);
            this.TxtNoiDung.Location = point;
            this.TxtNoiDung.Multiline = true;
            this.TxtNoiDung.Name = "TxtNoiDung";
            size = new Size(800, 0x3b);
            this.TxtNoiDung.Size = size;
            this.TxtNoiDung.TabIndex = 110;
            this.Label1.AutoSize = true;
            point = new Point(9, 0x29);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(50, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0x6f;
            this.Label1.Text = "Nội dung";
            this.VSListDieuKhoan.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSListDieuKhoan.ColumnInfo = manager.GetString("VSListDieuKhoan.ColumnInfo");
            this.VSListDieuKhoan.ExtendLastCol = true;
            this.VSListDieuKhoan.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(5, 0x7a);
            this.VSListDieuKhoan.Location = point;
            this.VSListDieuKhoan.Name = "VSListDieuKhoan";
            this.VSListDieuKhoan.Rows.Count = 1;
            size = new Size(0x37f, 0x10f);
            this.VSListDieuKhoan.Size = size;
            this.VSListDieuKhoan.Styles = new CellStyleCollection(manager.GetString("VSListDieuKhoan.Styles"));
            this.VSListDieuKhoan.TabIndex = 0x70;
            point = new Point(0xc4, 0x18f);
            this.CmdMacDinh.Location = point;
            this.CmdMacDinh.Name = "CmdMacDinh";
            size = new Size(0x7b, 0x17);
            this.CmdMacDinh.Size = size;
            this.CmdMacDinh.TabIndex = 0x71;
            this.CmdMacDinh.Text = "Điều khoản mặc định";
            this.CmdMacDinh.UseVisualStyleBackColor = true;
            point = new Point(710, 0x18f);
            this.CmdIn.Location = point;
            this.CmdIn.Name = "CmdIn";
            size = new Size(0x5c, 0x17);
            this.CmdIn.Size = size;
            this.CmdIn.TabIndex = 0x72;
            this.CmdIn.Text = "Trang in";
            this.CmdIn.UseVisualStyleBackColor = true;
            point = new Point(0x328, 0x18f);
            this.CmdExit.Location = point;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x5c, 0x17);
            this.CmdExit.Size = size;
            this.CmdExit.TabIndex = 0x73;
            this.CmdExit.Text = "Tho\x00e1t";
            this.CmdExit.UseVisualStyleBackColor = true;
            this.CmdDelRow.Image = (Image) manager.GetObject("CmdDelRow.Image");
            this.CmdDelRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(100, 0x18e);
            this.CmdDelRow.Location = point;
            this.CmdDelRow.Name = "CmdDelRow";
            size = new Size(90, 0x18);
            this.CmdDelRow.Size = size;
            this.CmdDelRow.TabIndex = 0x75;
            this.CmdDelRow.Text = "&2.X\x00f3a d\x00f2ng";
            this.CmdDelRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdDelRow.UseVisualStyleBackColor = true;
            this.CmdAddRow.Image = (Image) manager.GetObject("CmdAddRow.Image");
            this.CmdAddRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(5, 0x18e);
            this.CmdAddRow.Location = point;
            this.CmdAddRow.Name = "CmdAddRow";
            size = new Size(0x5d, 0x18);
            this.CmdAddRow.Size = size;
            this.CmdAddRow.TabIndex = 0x74;
            this.CmdAddRow.Text = "&1.Th\x00eam d\x00f2ng";
            this.CmdAddRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdAddRow.UseVisualStyleBackColor = true;
            this.Label2.AutoSize = true;
            this.Label2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Underline | FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(9, 0x68);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x48, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x76;
            this.Label2.Text = "Điều khoản";
            this.Label3.AutoSize = true;
            point = new Point(0xd9, 0x10);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x2c, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x77;
            this.Label3.Text = "Loại gi\x00e1";
            this.CboLoaiGia.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiGia.FormattingEnabled = true;
            point = new Point(0x10b, 12);
            this.CboLoaiGia.Location = point;
            this.CboLoaiGia.Name = "CboLoaiGia";
            size = new Size(0xeb, 0x15);
            this.CboLoaiGia.Size = size;
            this.CboLoaiGia.TabIndex = 120;
            this.OptTiengAnh.AutoSize = true;
            point = new Point(670, 13);
            this.OptTiengAnh.Location = point;
            this.OptTiengAnh.Name = "OptTiengAnh";
            size = new Size(0x52, 0x11);
            this.OptTiengAnh.Size = size;
            this.OptTiengAnh.TabIndex = 0x7a;
            this.OptTiengAnh.Text = "In tiếng Anh";
            this.OptTiengAnh.UseVisualStyleBackColor = true;
            this.OptTienViet.AutoSize = true;
            this.OptTienViet.Checked = true;
            point = new Point(0x22a, 13);
            this.OptTienViet.Location = point;
            this.OptTienViet.Name = "OptTienViet";
            size = new Size(0x51, 0x11);
            this.OptTienViet.Size = size;
            this.OptTienViet.TabIndex = 0x79;
            this.OptTienViet.TabStop = true;
            this.OptTienViet.Text = "In tiếng Việt";
            this.OptTienViet.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x388, 0x1aa);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.OptTiengAnh);
            this.Controls.Add(this.OptTienViet);
            this.Controls.Add(this.CboLoaiGia);
            this.Controls.Add(this.Label3);
            this.Controls.Add(this.Label2);
            this.Controls.Add(this.CmdDelRow);
            this.Controls.Add(this.CmdAddRow);
            this.Controls.Add(this.CmdExit);
            this.Controls.Add(this.CmdIn);
            this.Controls.Add(this.CmdMacDinh);
            this.Controls.Add(this.VSListDieuKhoan);
            this.Controls.Add(this.Label1);
            this.Controls.Add(this.TxtNoiDung);
            this.Controls.Add(this.Label13);
            this.Controls.Add(this.TxtNgayChungTu);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Frm_RptBangGiaHangHoa";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BC-BH12";
            this.Text = "BANG BAO GIA";
            this.VSListDieuKhoan.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        private void VSListDieuKhoan_CellButtonClick(object sender, RowColEventArgs e)
        {
            if (e.Col == 2)
            {
                string expression = SearchModule.SearchDieuKhoan("");
                if (expression.Trim() != "")
                {
                    object instance = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                    this.VSListDieuKhoan[e.Row, 1] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null));
                    this.VSListDieuKhoan[e.Row, 2] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 2 }, null));
                }
                this.VSListDieuKhoan.Select(e.Row, 3);
            }
        }

        internal virtual ComboBox CboLoaiGia
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiGia;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiGia = value;
            }
        }

        internal virtual Button CmdAddRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAddRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdAddRow = value;
            }
        }

        internal virtual Button CmdDelRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDelRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdDelRow = value;
            }
        }

        internal virtual Button CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual Button CmdIn
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdIn;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdIn_Click);
                if (this._CmdIn != null)
                {
                    this._CmdIn.Click -= handler;
                }
                this._CmdIn = value;
                if (this._CmdIn != null)
                {
                    this._CmdIn.Click += handler;
                }
            }
        }

        internal virtual Button CmdMacDinh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdMacDinh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdMacDinh_Click);
                if (this._CmdMacDinh != null)
                {
                    this._CmdMacDinh.Click -= handler;
                }
                this._CmdMacDinh = value;
                if (this._CmdMacDinh != null)
                {
                    this._CmdMacDinh.Click += handler;
                }
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual RadioButton OptTiengAnh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptTiengAnh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._OptTiengAnh = value;
            }
        }

        internal virtual RadioButton OptTienViet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._OptTienViet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._OptTienViet = value;
            }
        }

        internal virtual DateTimePicker TxtNgayChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayChungTu = value;
            }
        }

        internal virtual TextBox TxtNoiDung
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNoiDung;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNoiDung = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSListDieuKhoan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSListDieuKhoan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSListDieuKhoan_CellButtonClick);
                if (this._VSListDieuKhoan != null)
                {
                    this._VSListDieuKhoan.CellButtonClick -= handler;
                }
                this._VSListDieuKhoan = value;
                if (this._VSListDieuKhoan != null)
                {
                    this._VSListDieuKhoan.CellButtonClick += handler;
                }
            }
        }
    }
}

